package com.cqw.vo.group;

import com.cqw.validate.Add;
import com.cqw.validate.Update;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author: caoqingwen
 * @CreateTime: 2021-05-24 15:22
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ActivityGroupVO {


    @ApiModelProperty(value = "idid")
    @NotNull(message = "id不能为空", groups = {Update.class})
    private Long id;

    @ApiModelProperty(value = "activityId活动id")
    @NotNull(message = "活动id不能为空", groups = {Add.class, Update.class})
    private Long activityId;

    @ApiModelProperty(value = "spuId商品SPU_ID")
    private Integer spuId;

    @ApiModelProperty(value = "spuCode商品code")
    private String spuCode;

    @ApiModelProperty(value = "spuName商品名称")
    private String spuName;

    @ApiModelProperty(value = "groupPrice拼团显示价格")
    private Long groupPrice;

    @ApiModelProperty(value = "groupGapTime拼团失效时间间隔")
    private Integer groupGapTime;

    @ApiModelProperty(value = "groupPeopleNumber拼团人数")
    private Integer groupPeopleNumber;

    @ApiModelProperty(value = "groupCloseTime关闭时间,等同于活动结束时间")
    private Date groupCloseTime;

    @ApiModelProperty(value = "groupForge是否加入虚拟用户 。1：加入  0：不加入;加入开团即生成三个虚拟开团,有真实用户开团,关闭团前最后五分钟自动补全此团")
    private Byte groupForge;

    @ApiModelProperty(value = "groupType拼团类型：1：团长支付 2：其它")
    private Byte groupType;

    @ApiModelProperty(value = "groupVirtualSales虚拟销量")
    private Integer groupVirtualSales;

    @ApiModelProperty(value = "leadNumber拼团团长最多可开进行中的团多少个")
    private Integer leadNumber;

    @ApiModelProperty(value = "memNumber拼团客户最多可参加多少个团")
    private Integer memNumber;

    @ApiModelProperty(value = "memMobileFlag电话号码是否需要：0:不需要，1：需要")
    private Byte memMobileFlag;

    @ApiModelProperty(value = "memNameFlag姓名是否需要：0:不需要，1：需要")
    private Byte memNameFlag;

    @ApiModelProperty(value = "memAddressFlag地址是否需要：0:不需要，1：需要")
    private Byte memAddressFlag;

    @ApiModelProperty(value = "createdTime创建时间")
    private Date createdTime;

    @ApiModelProperty(value = "updatedTime修改时间")
    private Date updatedTime;


}
